//
//  common.swift
//  xinlangweibo
//
//  Created by 任玉林 on 16/6/25.
//  Copyright © 2016年 任玉林. All rights reserved.
//

import UIKit

// 切换根控制器标识
let SwitchRootVcNoti = "SwitchRootVcNoti"

//表表情键盘删除按钮的通知 name
let EmoticonDeleteButtonNoti = "EmoticonDeleteButtonNoti"

//表情键盘每一个按钮的通知 name
let EmoticonButtonNoti = "EmoticonButtonNoti"

// 微博相关信息参数
let APPKEY = "2740698652"
let APPSECRET = "dc39ca9fe39ea41084d1eb8cb1d0687a"
let REDIRECT_URI = "http://www.baidu.com"

//屏幕宽高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height

///主题颜色
let ThemeColor = UIColor.orangeColor()

///RGB
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}

///随机颜色
func randomColor() -> UIColor{
    
    let R = CGFloat(random()%256)
    
    let G = CGFloat(random()%256)
    
    let B = CGFloat(random()%256)
    
    return RGB(R, green: G, blue: B)
}

